from django.db import models


class ImageModel(models.Model):
    objects = models.Manager()
    name = models.CharField(max_length=100)
    image_path = models.CharField(max_length=255)  # 存储图片的路径

    # 定义分类选项
    CATEGORY_CHOICES = [
        (1, '主营服务'),
        (2, '核心技术'),
    ]
    category = models.IntegerField(choices=CATEGORY_CHOICES, default=1,help_text="板块类型：（1）主营服务，（2）核心技术")

    class Meta:
        db_table = 'core_image_path'
